package com.lili.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lili.pojo.Exam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lili.vo.request.admin.ExamPageReqVO;
import com.lili.vo.request.troop.ExamQueryReqVO;
import com.lili.vo.request.officer.ScoreReqVO;
import com.lili.vo.response.admin.ExamPageRespVO;
import com.lili.vo.response.other.KeyValue;
import com.lili.vo.response.troop.TroopExamRespVO;
import com.lili.vo.response.officer.ScoreRespVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface ExamMapper extends BaseMapper<Exam> {

    IPage<ExamPageRespVO> getPageList(IPage<ExamPageRespVO> page, @Param("vo") ExamPageReqVO vo);

    com.lili.vo.response.officer.ExamRespVO selectExamById(Integer id);

    int delById(Integer id);

    List<TroopExamRespVO> selectRecentExam(Integer classesId);

    IPage<TroopExamRespVO> getStuExamList(IPage<ExamQueryReqVO> page, @Param("vo") ExamQueryReqVO vo);

    IPage<ScoreRespVO> selectScorePage(IPage<ScoreRespVO> page, @Param("vo") ScoreReqVO vo);

    List<KeyValue> getExamKVS();

}




